

"""
实现：
猫可以：喵喵叫、吃、喝、拉、撒
狗可以：汪汪叫、吃、喝、拉、撒
公共的部分就是 吃、喝、拉、撒
"""


class Animos:
    guojia = "china"

    def __init__(self, name):
        self.name = name

    def eat(self):
        print("%s 吃" % self.name)

    def he(self):
        print("%s 喝" % self.name)

    def la(self):
        print("%s 拉" % self.name)

    def sa(self):
        print("%s 撒" % self.name)


class Mao(Animos):
    def miao(self):
        print("%s 喵喵叫"% self.name)


class Gou(Animos):
    def wang(self):
        print("%s 汪汪叫"% self.name)


mao1 = Mao("mao1")
mao1.miao()
mao1.eat()

mao2 = Mao("mao2")
mao2.miao()

gou1 = Gou("dogs1")
gou1.wang()
gou1.he()